<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>函数返回值和函数表达式</title>
    
</head>
<body>
    <script type="text/javascript">
        // 加减乘除计算器
        function addition(a,b){
            return a+b;
        }
        function subtraction(a,b){
            return a-b;
        }
        function multiplicatio(a,b){
            return a*b;
        }
        function division(a,b){
            return a/b;
        }
        
        // 函数表达式
        var ret = function(a,b){
            return a+b;
        }
        alert(ret(1,2));
    </script>
</body>
</html>